import Vue from "vue"
import VueRouter from "vue-router"

import HomePage from "@/views/HomePage.vue"
import NewText from "@/views/NewText.vue"
import PhysicalCulture from "@/views/PhysicalCulture.vue"
import SportsHomepage from "@/views/SportsHomepage.vue"
import DomesticSports from "@/views/DomesticSports.vue"
import OutSports from "@/views/OutSports.vue"

Vue.use(VueRouter)
const router = new VueRouter({
    // 配置路由
    routes: [
        { path:"/homepage",component:HomePage },
        { path:"/newtext",component:NewText },
        {
            path: "/physicalculture",
            component: PhysicalCulture,
            children: [
                {
                    path:"sportshomepage",
                    component:SportsHomepage
                },
                {
                    path:"domesticsports",
                    component:DomesticSports
                },
                {
                    path:"outsports",
                    component:OutSports
                },
            ]
        },
    ]
})

export default router